import Layout from '@/page/index/index.vue'
import Store from '@/store/'

export default [{
  path: '/wel',
  component: () => Store.getters.isMacOs ? import('@/mac/index.vue') : import('@/page/index/index.vue'),
  redirect: '/wel/index',
  children: [{
    path: 'index',
    name: '首页',
    meta: {
      i18n: 'dashboard'
    },
    component: () =>
      import(/* webpackChunkName: "views" */ '@/page/wel.vue')
  }]
}, {
  path: '/iframe',
  component: Layout,
  redirect: '/iframe',
  children: [{
    path: '',
    name: '',
    component: () =>
      import(/* webpackChunkName: "views" */ '@/components/Iframe/main.vue')
  }]
}, {
  path: '/info',
  component: Layout,
  redirect: '/info/index',
  children: [{
    path: 'index',
    name: '个人信息',
    component: () =>
      import (/* webpackChunkName: "page" */ '@/views/admin/user/info.vue')
  }]
},
{
    path:'/stop',
    component: Layout,
    children: [{
        path: '/stop/childrenPark',
        name: '子车场管理',
        component: () =>
          import (/* webpackChunkName: "page" */ '@/views/stop/parking/components/childrenPark.vue')
      },
    //   {
    //     path: '/stop/parkArea',
    //     name: '停车场区域',
    //     component: () =>
    //       import (/* webpackChunkName: "page" */ '@/views/stop/parking/components/parkArea.vue')
    //   },
    //   {
    //     path: '/stop/specialRelease',
    //     name: '特别放行原因',
    //     component: () =>
    //       import (/* webpackChunkName: "page" */ '@/views/stop/parking/components/specialRelease.vue')
    //   },
    //   {
    //     path: '/stop/parkingSpace',
    //     name: '停车位',
    //     component: () =>
    //       import (/* webpackChunkName: "page" */ '@/views/stop/parking/components/components/parkSpace.vue')
    //   },
    ]
}
]
